/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.factory.abstractFactory.data.product;

import com.aeky.factory.abstractFactory.factory.PizzaIngredientFactory;

/**
 * TODO
 * 
 * @author aeky
 */
public class PizzaA extends Pizza {

    private PizzaIngredientFactory inF;

    public PizzaA(PizzaIngredientFactory ingredientFactory) {
        this.inF = ingredientFactory;
    }

    /*
     * 
     * @see com.aeky.factory.abstractFactory.data.product.Pizza#prepare()
     */
    @Override
    public void prepare() {
        this.cheese = inF.createCheese();
        this.dough = inF.createDough();
        this.sauce = inF.createSauce();
    }

}
